From: Carlos Soriano Sánchez Date: Sun, 4 Nov 2012 23:06:47 +0000 (+0100) Subject: MessageTray: change height in chat notification to have more context. X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5476 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=09b738045c52089d7ef010dc2550e44d805e77ed;p=gnome-shell.git MessageTray: change height in chat notification to have more context. https://bugzilla.gnome.org/show_bug.cgi?id=665255 --- diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 843848084..7a0a9883e 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -1432,6 +1432,10 @@ StScrollBar StButton#vhandle:active { padding-right: 4px; } +.chat-notification-scrollview{ + max-height: 22em; +} + .subscription-message { font-style: italic; } diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js index 4268253c4..281a6066e 100644 --- a/js/ui/components/telepathyClient.js +++ b/js/ui/components/telepathyClient.js @@ -779,6 +779,7 @@ const ChatNotification = new Lang.Class({ // force a scroll to the bottom if things change while we were at the // bottom this._oldMaxScrollValue = this._scrollArea.vscroll.adjustment.value; + this._scrollArea.add_style_class_name('chat-notification-scrollview'); this._scrollArea.vscroll.adjustment.connect('changed', Lang.bind(this, function(adjustment) { if (adjustment.value == this._oldMaxScrollValue) this.scrollTo(St.Side.BOTTOM);